home *** CD-ROM | disk | FTP | other *** search
/ 1st Multimedia Mac Shareware / Multimedia Shareware CD-ROM - BetaCorp.iso / Demosƒ / Task Master v1.0d⁄lock / Task Master v1.0d_lock / stack_-1.xml < prev   
Encoding:
Extensible Markup Language  |  1992-07-26  |  11.9 KB  |  28 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.0d_lock</name>
  5.     <id>-1</id>
  6.     <cardCount>6</cardCount>
  7.     <cardID>3012</cardID>
  8.     <listID>5352</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on openStack
  17. -- ChangeCursor¬©1988 & ShowDialog XCMDs by Jay Hodgdon
  18. global priorLevel, index, newName, flag, flag2
  19. global levelHolder, start, ending, dayTotal,mainFactor
  20. global fieldPercent, taskPercent
  21. global startSec, endSec, endTwo, taskLength, totalLength
  22. global TLx, TLy, BRx, BRy, BRy2, TLy2, topLeft, botRight
  23. ---
  24. put the id of this cd into cardTemp
  25. put last word of cardTemp into cardTemp
  26. if cardTemp = 3012 then
  27. put long name of this stack into pathname
  28. delete first word of pathname
  29. set lockscreen to true
  30. show bkgnd btn "Task Master¬©"
  31. get script of bkgnd btn "Task Master¬©"
  32. delete word 2 of line 5 of it
  33. put ""&&pathname after word 1 of line 5 of it
  34. set the script of bkgnd btn "Task Master¬©" to it
  35. hide bkgnd btn "Task Master¬©"
  36. set lockscreen to false
  37. flasher 4, the rect of bkgnd btn id 29
  38. end if
  39. ---
  40. show menuBar
  41. put the userLevel into priorLevel
  42. set the userLevel to 5
  43. push recent cd
  44. end openStack
  45. -----------------------------------------------------------------------
  46. on closeStack
  47. global priorLevel
  48. put priorLevel into userLevel
  49. end closeStack
  50. -----------------------------------------------------------------------
  51. on doMenu which
  52. pass doMenu
  53. end doMenu
  54. -----------------------------------------------------------------------
  55. on redrawSubTasks
  56. global flag2
  57.  
  58. beep
  59. showDialog 2, 4741, "Enter the number of subtasks that you "&¬¨
  60. "are tracking.  (A single digit‚Ķ from 1 to 8)","","","1 to 3 tasks for demo v1.0!"
  61. if the result is empty or the result = "1 to 3 tasks for demo v1.0!" then
  62. exit redrawSubTasks else
  63. put the result into numTasks  -- number of tasks to update
  64. go to this cd
  65. if numTasks > 3 then  -- too many tasks requested
  66. beep
  67. answer "Sorry!  You‚Äôre limited to a maximum of 3 subtasks"&¬¨
  68. " in the demo v1.0‚Ķ  Try again!" with "Oops!"
  69. exit redrawSubTasks
  70. end if
  71.  
  72. if bkgnd fld "S1-SD" is empty then  -- there are no tasks to update!
  73. hide msg
  74. exit redrawSubTasks
  75. end if
  76.  
  77. choose Browse tool  -- and away we go!
  78. put 1 into flag2
  79. set cursor to 4
  80. play harpsichord "gq"
  81. set the loc of msg to 17,146
  82. put "Updating the subtask bar chart graphics‚Ķ" into msg
  83. go to this cd
  84.  
  85. put "Updating the subtask bar chart graphics‚Ķ Subtask #1" into msg
  86. click at 40,190   -- redraw subtask 1
  87. put 1 into temp   -- counter to 1
  88. if temp = numTasks then
  89. do "hider3"
  90. exit redrawSubTasks
  91. end if
  92.  
  93. if bkgnd fld "S2-SD" is empty then  -- no more subtasks after #1
  94. do "hider3"
  95. exit redrawSubTasks
  96. end if
  97.  
  98. put "Updating the subtask bar chart graphics‚Ķ Subtask #2" into msg
  99. click at 40,205  -- redraw subtask 2
  100. add 1 to temp    -- counter to 2
  101. if temp = numTasks then
  102. do "hider3"
  103. exit redrawSubTasks
  104. end if
  105.  
  106. if bkgnd fld "S3-SD" is empty then  -- no more subtasks after #2
  107. do "hider3"
  108. exit redrawSubTasks
  109. end if
  110.  
  111. put "Updating the subtask bar chart graphics‚Ķ Subtask #3" into msg
  112. click at 40,220  -- redraw subtask 3
  113. add 1 to temp  -- counter to 3
  114. if temp = numTasks then
  115. do "hider3"
  116. exit redrawSubTasks
  117. end if
  118.  
  119. if fld "S4-SD" is empty then  -- no more subtasks after #3
  120. do "hider3"
  121. exit redrawSubTasks
  122. end if
  123.  
  124. put "Updating the subtask bar chart graphics‚Ķ Subtask #4" into msg
  125. click at 40,233  -- redraw subtask 4
  126. add 1 to temp  --counter to 4
  127. if temp = numTasks then
  128. do "hider3"
  129. exit redrawSubTasks
  130. end if
  131.  
  132. if fld "S5-SD" is empty then  -- no more subtasks after #4
  133. do "hider3"
  134. exit redrawSubTasks
  135. end if
  136.  
  137. put "Updating the subtask bar chart graphics‚Ķ Subtask #5" into msg
  138. click at 40,247  -- redraw subtask 5
  139. add 1 to temp  -- counter to 5
  140. if temp = numTasks then
  141. do "hider3"
  142. exit redrawSubTasks
  143. end if
  144.  
  145. if fld "S6-SD" is empty then  -- no more subtasks after #5
  146. do "hider3"
  147. exit redrawSubTasks
  148. end if
  149.  
  150. put "Updating the subtask bar chart graphics‚Ķ Subtask #6" into msg
  151. click at 40,261  -- redraw subtask 6
  152. add 1 to temp  -- counter to 6
  153. if temp = numTasks then
  154. do "hider3"
  155. exit redrawSubTasks
  156. end if
  157.  
  158. if fld "S7-SD" is empty then  -- no more subtasks after #6
  159. do "hider3"
  160. exit redrawSubTasks
  161. end if
  162.  
  163. put "Updating the subtask bar chart graphics‚Ķ Subtask #7" into msg
  164. click at 40,275  -- redraw subtask 7
  165. add 1 to temp -- counter to 7
  166. if temp = numTasks then
  167. do "hider3"
  168. exit redrawSubTasks
  169. end if
  170.  
  171. if fld "S8-SD" is empty then  -- no more subtasks after #7
  172. do "hider3"
  173. exit redrawSubTasks
  174. end if
  175.  
  176. put "Updating the subtask bar chart graphics‚Ķ Subtask #8" into msg
  177. click at 40,287  -- redraw subtask 8
  178. do "hider3"
  179. end if
  180. put 0 into flag2
  181. end redrawSubTasks
  182. -----------------------------------------------------------------------
  183. on hider3
  184. click at 240,165
  185. hide msg
  186. end hider3
  187. -----------------------------------------------------------------------
  188. on taskReport
  189. show bkgnd fld id 157
  190. show bkgnd fld id 164
  191. show bkgnd btn id 161
  192. show bkgnd btn id 163
  193. show bkgnd btn id 160
  194. set the scroll of bkgnd field id 157 to 0
  195. end taskReport
  196. -----------------------------------------------------------------------
  197. on saveTaskAs
  198. put bkgnd fld id 164 into temp
  199. if temp is empty then
  200. put bkgnd fld id 12 into temp
  201. end if
  202. get NewFileName("Save ‚ÄúTask Report‚Äù as‚Ķ",temp)
  203. beep
  204. go to this cd
  205. answer "Disk-save is not supported in the Demo v1.0 as it is in TaskMaster¬© v2.0" with "OK"
  206. end saveTaskAs
  207. -----------------------------------------------------------------------
  208. on taskMasterHelp
  209. push cd
  210. visual dissolve to gray
  211. visual dissolve slowly to gray
  212. visual dissolve to cd
  213. go to cd id 5991
  214. set the scroll of fld id 1 to 0
  215. end taskMasterHelp
  216. -----------------------------------------------------------------------
  217. on TMbuttonMaker
  218. global levelHolder
  219. play "Boing" gh
  220. answer "This will load a TaskMaster¬© stack button onto "&¬¨
  221. "your ‚ÄúHome‚Äù card?" with "Go ahead!" or "Cancel"
  222. if it is "Go ahead!" then
  223. put the userLevel into levelHolder
  224. show bkgnd fld "Pasting Field"
  225. show bkgnd btn "Task Master¬©"
  226. set lockScreen to true
  227. set cursor to 4
  228. get the loc of bkgnd btn "Task Master¬©"
  229. choose Button tool
  230. click at it
  231. doMenu "Copy Button"
  232. push cd
  233. go home
  234. set the userLevel to 5
  235. doMenu "Paste Button"
  236. pop cd
  237. play "Boing" gh
  238. choose Browse tool
  239. set lockScreen to false
  240. show bkgnd fld "Successful Paste"
  241. hide bkgnd fld "Pasting Field"
  242. wait 150 ticks
  243. hide bkgnd btn "Task Master¬©"
  244. hide bkgnd fld "Successful Paste"
  245. set the userLevel to levelHolder
  246. end if
  247. end TMbuttonMaker
  248. -----------------------------------------------------------------------
  249. on QuitTaskMaster
  250. do "closeStack"
  251. go  Home
  252. end QuitTaskMaster
  253. -----------------------------------------------------------------------
  254. on updateMes
  255. play harpsichord tempo 400 "gq"
  256. set the loc of msg to 17,146
  257. put "Updating the sub-task bar chart graphics‚Ķ" into msg
  258. show msg
  259. end updateMes
  260. -----------------------------------------------------------------------
  261. on closeLabels
  262. hide bkgnd fld id 67
  263. hide bkgnd fld id 68
  264. hide bkgnd fld id 69
  265. hide bkgnd fld id 19
  266. hide bkgnd fld "hider1"
  267. hide msg
  268. end closeLabels
  269. -----------------------------------------------------------------------
  270. on showLabels
  271. show bkgnd fld "hider1"
  272. show bkgnd fld id 19
  273. show bkgnd fld id 67
  274. show bkgnd fld id 68
  275. show bkgnd fld id 69
  276. end showLabels
  277. -----------------------------------------------------------------------
  278. on createTaskCard
  279. global index, newName
  280. set the loc of msg to 17,303
  281. ---
  282. showDialog 2, 4741, "Enter a title for your new task‚Ķ this will show in"&¬¨
  283. " the card title and on the ‚ÄúIndex Card‚Äù button‚Ķ","","","Maximum 28 characters!"
  284. if the result is empty or the result = "Maximum 28 characters!" then
  285. exit createTaskCard
  286. else
  287. put the result into newName
  288. if the length of newName > 28 then
  289. beep
  290. answer "Try again!  You entered a title that contained"&¬¨
  291. " more than 28 characters!" with "OK"
  292. exit createTaskCard
  293. else
  294. put the number of words of newName into wordTotal
  295. repeat with x = 1 to wordTotal
  296. put the CharToNum of first character of word x of newName into temp
  297. if temp >= 97 and temp <= 122 then
  298. put temp - 32 into temp
  299. put the NumToChar of temp into first character of word x of newName
  300. end if
  301. end repeat
  302. ---
  303. set cursor to 4
  304. set lockScreen to true
  305. put the id of this cd into masterIndex
  306. go to card "Master Task Card"
  307. doMenu "Copy Card"
  308. go to masterIndex
  309. doMenu "Paste Card"
  310. ---
  311. put newName into fld "Task Title"
  312. put "Untitled" into fld id 164
  313. put item 2 to 3 of the long date into fld "current date"
  314. put empty into bkgnd fld id 152
  315. set the name of this cd to newName
  316. put the id of this cd into temp
  317. put " % Completed:" into line 1 of fld id 67
  318. put "    Description:" into line 2 of fld id 67
  319. put "Responsibility:" into line 3 of fld id 67
  320. put "      Resources:" into line 4 of fld id 67
  321. put "     Comments:" into line 5 of fld id 67
  322. put "Start Date:" into line 1 of fld id 68
  323. put "Finish Date:" into line 1 of fld id 69
  324. ---
  325. go to masterIndex
  326. set the script of this cd to empty
  327. doMenu "New Button"
  328. set rect of btn "New Button" to 200,100,445,117
  329. set textStyle of btn "New Button" to plain
  330. set textSize of btn "New Button" to 12
  331. set textFont of btn "New Button" to Chicago
  332. set textAlign of btn "New Button" to left
  333. set showName of btn "New Button" to true
  334. set the style of btn "New Button" to transparent
  335. set name of btn "New Button" to newName
  336. put "on mouseUp" into line 1 of newScript
  337. put "flasher 2, the rect of me" into line 2 of newScript
  338. put "put newTopic("& quote & temp & quote & ") into dummy" ¬¨
  339. into line 3 of newScript
  340. put "hide msg" into line 4 of newScript
  341. put "push cd" into line 5 of newScript
  342. put "visual dissolve to gray" into line 6 of newScript
  343. put "visual dissolve to cd" into line 7 of newScript
  344. put "go to" && temp into line 8 of newScript
  345. put "end mouseUp" into line 9 of newScript
  346. set script of btn newName to newScript
  347. set lockScreen to False
  348. flasher 3, the rect of btn newName
  349. put "Drag new button to appropriate location and press Command-Tab" into msg
  350. show msg
  351. end if
  352. end if
  353. end createTaskCard
  354. -----------------------------------------------------------------------
  355. function newTopic num
  356. put the id of this cd into index
  357. if the commandKey is down then
  358. choose button tool
  359. click at the clickLoc
  360. get the short name of the target
  361. put item 1 of the clickLoc into x
  362. put item 2 of the clickLoc into y
  363. beep
  364. answer "Delete this task and all it‚Äôs data?  You can‚Äôt undo this"&¬¨
  365. " once it‚Äôs done!" with "Go ahead!" or "Cancel"
  366. if it is "Go ahead!" then
  367. set cursor to 4
  368. set the loc of msg to 17,303
  369. put "Deleting task button and compacting the stack‚Ķ" into msg
  370. show msg
  371. click at x,y
  372. doMenu "Cut Button"
  373. set lockScreen to True
  374. go to num
  375. doMenu "Delete card"
  376. go to index
  377. doMenu "Compact Stack"
  378. play harpsichord tempo 400 "gq cq"
  379. hide msg
  380. set lockScreen to False
  381. end if
  382. choose browse tool
  383. end if
  384. return num
  385. end newTopic
  386. -------------
  387. on closeReport
  388. set lockScreen to true
  389. hide bkgnd fld id 164
  390. hide bkgnd btn id 161
  391. hide bkgnd btn id 163
  392. hide bkgnd btn id 160
  393. hide bkgnd fld id 157
  394. set lockScreen to false
  395. end closeReport
  396. --------------------------------------------------------
  397. on idle
  398. put the userLevel into tempLevel
  399. if tempLevel>4 then
  400. set the userLevel to 4
  401. end if
  402. pass idle
  403. end idle
  404. </script>
  405.     <background id="2263" file="background_2263.xml" name="Master Index Bkgnd" />
  406.     <background id="2455" file="background_2455.xml" name="Master Background 1" />
  407.     <background id="2613" file="background_2613.xml" name="Title Card Background" />
  408.     <background id="4688" file="background_4688.xml" name="" />
  409.     <card id="3012" file="card_3012.xml" marked="false" name="Title Card" owner="2613" />
  410.     <card id="4180" file="card_4180.xml" marked="false" name="Index Card" owner="2263" />
  411.     <card id="4429" file="card_4429.xml" marked="false" name="TaskMaster¬© Stack Project" owner="2455" />
  412.     <card id="5033" file="card_5033.xml" marked="false" name="Demonstration Task (click!)" owner="2455" />
  413.     <card id="5709" file="card_5709.xml" marked="false" name="Master Task Card" owner="2455" />
  414.     <card id="5991" file="card_5991.xml" marked="false" name="Help Card" owner="4688" />
  415. </stack>
  416.